package design_patterns.strategy;

/**
 * 环境的上下文，持有策略的引用，供客户端使用
 */
public class Context {
	private Strategy strategy;
	
	public Context(Strategy strategy){
		this.strategy=strategy;
	}
	
	public int exec(int a,int b){
		return strategy.doOperation(a, b);
	}
	
}
